package it.unive.taw;
import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class cazzo extends HttpServlet
{
   /**
	 * 
	 */
	private static final long serialVersionUID = 7668140700181107529L;

public void doGet(final HttpServletRequest request, final HttpServletResponse response)
      throws ServletException, IOException
   {
       
      //preparo il tipo di risposta
      response.setContentType("text/html");
      final PrintWriter out= response.getWriter();
      out.println("<HTML><BODY BGCOLOR=\"#7F7FFF\"><H1 ALIGN=CENTER>HELLO WORLD</H1></BODY></HTML>");
      out.close();
   }
   
   public void doPost(final HttpServletRequest request, final HttpServletResponse response)
throws ServletException, IOException
   {
      doGet(request,response);
   }
}  